import animal.*;
public class Main {
    public static void main(String[] args) {
        ZooComposition testZoo = new ZooComposition();
        VisitorAdult adult1 = new VisitorAdult("A1");
        VisitorChild child1 = new VisitorChild("a1");
        VisitorAdult adult2 = new VisitorAdult("B1");
        VisitorChild child2  = new VisitorChild("b1");
        VisitorAdult adult3 = new VisitorAdult("C1");
        VisitorChild child3 = new VisitorChild("c1");
        testZoo.addAdult(adult1);
        testZoo.addChild(child1);
        testZoo.addAdult(adult2);
        testZoo.addChild(child2);
        System.out.println(testZoo.displayAllVisitors());
        System.out.println("-----------------------------");
        testZoo.deleteChild("a1");
        testZoo.updateAdult(adult2,adult3);
        testZoo.updateChild(child2,child3);
        System.out.println(testZoo.displayAllVisitors());
    }
}
